﻿using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Reflection;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace SampleWebsite.Workflow
{
	partial class LoginWorkflow
	{
		#region Designer generated code
		
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
        [System.Diagnostics.DebuggerNonUserCode]
		private void InitializeComponent()
		{
            this.CanModifyActivities = true;
            System.Workflow.ComponentModel.ActivityBind activitybind1 = new System.Workflow.ComponentModel.ActivityBind();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference1 = new System.Workflow.Activities.Rules.RuleConditionReference();
            System.Workflow.Activities.Rules.RuleConditionReference ruleconditionreference2 = new System.Workflow.Activities.Rules.RuleConditionReference();
            this.ReturnToLogin = new System.Workflow.Activities.CodeActivity();
            this.RedirectToReferingPage = new WorkflowManagement.Workflow.Activities.ResponseRedirectActivity();
            this.AuthenticateUser = new System.Workflow.Activities.CodeActivity();
            this.UserIsNotValid = new System.Workflow.Activities.IfElseBranchActivity();
            this.UserIsValid = new System.Workflow.Activities.IfElseBranchActivity();
            this.IfValidUser = new System.Workflow.Activities.IfElseActivity();
            this.ValidateUser = new System.Workflow.Activities.CodeActivity();
            // 
            // ReturnToLogin
            // 
            this.ReturnToLogin.Name = "ReturnToLogin";
            this.ReturnToLogin.ExecuteCode += new System.EventHandler(this.ReturnToLogin_ExecuteCode);
            // 
            // RedirectToReferingPage
            // 
            this.RedirectToReferingPage.Description = "Provides support for redirecting to a new url.";
            this.RedirectToReferingPage.Name = "RedirectToReferingPage";
            activitybind1.Name = "LoginWorkflow";
            activitybind1.Path = "ReturnUrl";
            this.RedirectToReferingPage.SetBinding(WorkflowManagement.Workflow.Activities.ResponseRedirectActivity.TargetUrlProperty, ((System.Workflow.ComponentModel.ActivityBind)(activitybind1)));
            // 
            // AuthenticateUser
            // 
            this.AuthenticateUser.Name = "AuthenticateUser";
            this.AuthenticateUser.ExecuteCode += new System.EventHandler(this.AuthenticateUser_ExecuteCode);
            // 
            // UserIsNotValid
            // 
            this.UserIsNotValid.Activities.Add(this.ReturnToLogin);
            ruleconditionreference1.ConditionName = "UserIsNotValid";
            this.UserIsNotValid.Condition = ruleconditionreference1;
            this.UserIsNotValid.Name = "UserIsNotValid";
            // 
            // UserIsValid
            // 
            this.UserIsValid.Activities.Add(this.AuthenticateUser);
            this.UserIsValid.Activities.Add(this.RedirectToReferingPage);
            ruleconditionreference2.ConditionName = "IsValid";
            this.UserIsValid.Condition = ruleconditionreference2;
            this.UserIsValid.Name = "UserIsValid";
            // 
            // IfValidUser
            // 
            this.IfValidUser.Activities.Add(this.UserIsValid);
            this.IfValidUser.Activities.Add(this.UserIsNotValid);
            this.IfValidUser.Name = "IfValidUser";
            // 
            // ValidateUser
            // 
            this.ValidateUser.Name = "ValidateUser";
            this.ValidateUser.ExecuteCode += new System.EventHandler(this.ValidateUser_ExecuteCode);
            // 
            // LoginWorkflow
            // 
            this.Activities.Add(this.ValidateUser);
            this.Activities.Add(this.IfValidUser);
            this.Name = "LoginWorkflow";
            this.CanModifyActivities = false;

		}

		#endregion

        private WorkflowManagement.Workflow.Activities.ResponseRedirectActivity RedirectToReferingPage;
        private CodeActivity ReturnToLogin;
        private CodeActivity AuthenticateUser;
        private IfElseBranchActivity UserIsNotValid;
        private IfElseBranchActivity UserIsValid;
        private IfElseActivity IfValidUser;
        private CodeActivity ValidateUser;















    }
}
